<?php
$model = new Administrator_Model_User();
$title = 'Thông tin thành viên';
$button = '<button class="edit button" name="btedit" value="btedit" type="submit"></button>';
$gioitinh = '';
$type = $model->GetUser_Type($this->uinfo->type);
if($this->uinfo->gender == '0')
{
	$gioitinh ='nam';
}elseif ($this->uinfo->gender == '1')
{
	$gioitinh = 'nu';
}elseif ($this->uinfo->gender == '2')
{
	$gioitinh =' khong xac dinh';
}

?>
<form method="post" enctype="multipart/form-data">
	<div class="nav">
		<div class="navbutton">
		<?php echo $button;?>
	</div>
	</div>
	<div class="sheet">
		<div class="mana-title"><?php echo $title?></div>
		<div class="intro">
			<div class="form">
				<div class="cat edit">
					<div class="uleft">
						<img src="<?php echo $model->ImageUrl('user', $this->uinfo->image)?>">
					</div>
					<div class="uright">
						<div class="element">
							<div class="eleft">Tên đăng nhập : </div>
							<div class="eright"><?php echo $this->uinfo->username?></div>
						</div>
						<div class="element">
							<div class="eleft">Email : </div>
							<div class="eright"><?php echo $this->uinfo->email?></div>
						</div>
						<div class="element">
							<div class="eleft">Họ tên : </div>
							<div class="eright"><?php echo $this->uinfo->name?></div>
						</div>
						<div class="element">
							<div class="eleft">Điện thoại : </div>
							<div class="eright"><?php echo $this->uinfo->phone?></div>
						</div>
						<div class="element">
							<div class="eleft">Giới tính : </div>
							<div class="eright"><?php echo $gioitinh?></div>
						</div>
						<div class="element">
							<div class="eleft">Ngày sinh : </div>
							<div class="eright"><?php echo  $this->uinfo->birthday ?></div>
						</div>
						<div class="element">
							<div class="eleft">Địa chỉ: </div>
							<div class="eright"><?php echo $this->uinfo->address ?></div>
						</div>
						<div class="element">
							<div class="eleft">Quyền hạn : </div>
							<div class="eright"><?php echo $type?></div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</form>